<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGoodLableTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('good_lable', function (Blueprint $table) {
            $table->increments('id');
            $table->string('lable', 16);//标注名称
            $table->text('synonym', 16);//同义词ID
            $table->text('near', 16);//近义词ID
            $table->string('color', 16);//颜色
            $table->integer('pid');//父级ID

            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('good_lable');
    }
}
